﻿let students=[
{"class":"软件工程","num":"201616080220","name":"高健"},
{"class":"软件工程","num":"201716080415","name":"尹斌"},
{"class":"软件工程","num":"201816080124","name":"陈俊杰"},
{"class":"软件工程","num":"201901140203","name":"黎水林"},
{"class":"软件工程","num":"201901140437","name":"李海彤"},
{"class":"软件工程","num":"201901150218","name":"彭龙泽"},
{"class":"软件工程","num":"201902141417","name":"吴培云"},
{"class":"软件工程","num":"201903130218","name":"易操"},
{"class":"软件工程","num":"201903130728","name":"刘曜玮"},
{"class":"软件工程","num":"201903131419","name":"陈旭旺"},
{"class":"软件工程","num":"201904080512","name":"张博昊"},
{"class":"软件工程","num":"201906100128","name":"陈宇翔"},
{"class":"软件工程","num":"201906100224","name":"张洪榛"},
{"class":"软件工程","num":"201906110319","name":"周有维"},
{"class":"软件工程","num":"201906120205","name":"张文玉"},
{"class":"软件工程","num":"201907210223","name":"牛子怡"},
{"class":"软件工程","num":"201907220436","name":"谢商"},
{"class":"软件工程","num":"201908130101","name":"许萌娣"},
{"class":"软件工程","num":"201908130103","name":"邱麟凤"},
{"class":"软件工程","num":"201908130104","name":"刘欣妮"},
{"class":"软件工程","num":"201908130105","name":"高亚琪"},
{"class":"软件工程","num":"201908130106","name":"黄婉莹"},
{"class":"软件工程","num":"201908130107","name":"苏文涛"},
{"class":"软件工程","num":"201908130108","name":"于柏琪"},
{"class":"软件工程","num":"201908130109","name":"郑湘博"},
{"class":"软件工程","num":"201908130110","name":"黄余丰"},
{"class":"软件工程","num":"201908130111","name":"夏瑜"},
{"class":"软件工程","num":"201908130112","name":"李铭"},
{"class":"软件工程","num":"201908130113","name":"林子捷"},
{"class":"软件工程","num":"201908130114","name":"刘礼"},
{"class":"软件工程","num":"201908130115","name":"蔡刊"},
{"class":"软件工程","num":"201908130116","name":"肖灵杰"},
{"class":"软件工程","num":"201908130117","name":"谭泺垚"},
{"class":"软件工程","num":"201908130118","name":"张汝浩"},
{"class":"软件工程","num":"201908130120","name":"代道武"},
{"class":"软件工程","num":"201908130121","name":"陈芋杭"},
{"class":"软件工程","num":"201908130122","name":"黄盛"},
{"class":"软件工程","num":"201908130123","name":"胡勇威"},
{"class":"软件工程","num":"201908130124","name":"肖可"},
{"class":"软件工程","num":"201908130125","name":"唐吕"},
{"class":"软件工程","num":"201908130126","name":"曾凯"},
{"class":"软件工程","num":"201908130127","name":"郭杰龙"},
{"class":"软件工程","num":"201908130128","name":"谭江涛"},
{"class":"软件工程","num":"201908130129","name":"石凯"},
{"class":"软件工程","num":"201908130201","name":"赵玎娜"},
{"class":"软件工程","num":"201908130202","name":"许灵"},
{"class":"软件工程","num":"201908130203","name":"陈溶"},
{"class":"软件工程","num":"201908130205","name":"宋坪容"},
{"class":"软件工程","num":"201908130206","name":"张瑞宁"},
{"class":"软件工程","num":"201908130207","name":"斯日古楞"},
{"class":"软件工程","num":"201908130208","name":"魏子豪"},
{"class":"软件工程","num":"201908130209","name":"孙维旭"},
{"class":"软件工程","num":"201908130210","name":"汪楼虎"},
{"class":"软件工程","num":"201908130211","name":"张梦龙"},
{"class":"软件工程","num":"201908130212","name":"刘俊林"},
{"class":"软件工程","num":"201908130213","name":"彭佳杰"},
{"class":"软件工程","num":"201908130214","name":"孙明杰"},
{"class":"软件工程","num":"201908130215","name":"彭建新"},
{"class":"软件工程","num":"201908130216","name":"屈文杰"},
{"class":"软件工程","num":"201908130217","name":"刘丛宇"},
{"class":"软件工程","num":"201908130218","name":"邵真逸"},
{"class":"软件工程","num":"201908130219","name":"陈家豪"},
{"class":"软件工程","num":"201908130220","name":"伍宇航"},
{"class":"软件工程","num":"201908130221","name":"卓思平"},
{"class":"软件工程","num":"201908130223","name":"梁豪"},
{"class":"软件工程","num":"201908130224","name":"张达盛"},
{"class":"软件工程","num":"201908130225","name":"郭贤慧"},
{"class":"软件工程","num":"201908130226","name":"舒锐"},
{"class":"软件工程","num":"201908130227","name":"叶丁升"},
{"class":"软件工程","num":"201908130301","name":"孟鸿芸"},
{"class":"软件工程","num":"201908130302","name":"谢梓琪"},
{"class":"软件工程","num":"201908130303","name":"魏滟鸿"},
{"class":"软件工程","num":"201908130304","name":"范娜"},
{"class":"软件工程","num":"201908130305","name":"向婵"},
{"class":"软件工程","num":"201908130306","name":"邓颖婕"},
{"class":"软件工程","num":"201908130307","name":"张德坤"},
{"class":"软件工程","num":"201908130308","name":"王志强"},
{"class":"软件工程","num":"201908130309","name":"刘吴涛"},
{"class":"软件工程","num":"201908130310","name":"邓贝"},
{"class":"软件工程","num":"201908130311","name":"岁东航"},
{"class":"软件工程","num":"201908130312","name":"黄哲浩"},
{"class":"软件工程","num":"201908130313","name":"胡逸夫"},
{"class":"软件工程","num":"201908130315","name":"胡睿俊"},
{"class":"软件工程","num":"201908130316","name":"刘柯廷"},
{"class":"软件工程","num":"201908130318","name":"蔡彬祺"},
{"class":"软件工程","num":"201908130319","name":"黎涛"},
{"class":"软件工程","num":"201908130320","name":"刘胜星"},
{"class":"软件工程","num":"201908130321","name":"李林益"},
{"class":"软件工程","num":"201908130322","name":"贺达"},
{"class":"软件工程","num":"201908130323","name":"石昊天"},
{"class":"软件工程","num":"201908130324","name":"李志星"},
{"class":"软件工程","num":"201908130325","name":"詹敏"},
{"class":"软件工程","num":"201908130326","name":"谭真"},
{"class":"软件工程","num":"201908130327","name":"肖泽东"},
{"class":"软件工程","num":"201908130328","name":"郭骏旺"},
{"class":"软件工程","num":"201908130401","name":"郝诗雨"},
{"class":"软件工程","num":"201908130402","name":"陈佳仪"},
{"class":"软件工程","num":"201908130403","name":"刘珊珊"},
{"class":"软件工程","num":"201908130404","name":"杨莉"},
{"class":"软件工程","num":"201908130405","name":"孔随秀"},
{"class":"软件工程","num":"201908130407","name":"姚海州"},
{"class":"软件工程","num":"201908130408","name":"崔伦鑫"},
{"class":"软件工程","num":"201908130409","name":"郑溢"},
{"class":"软件工程","num":"201908130410","name":"刘淼"},
{"class":"软件工程","num":"201908130411","name":"乔宇昆"},
{"class":"软件工程","num":"201908130412","name":"尹家欢"},
{"class":"软件工程","num":"201908130413","name":"邹鹏"},
{"class":"软件工程","num":"201908130414","name":"曹俊豪"},
{"class":"软件工程","num":"201908130415","name":"姚星宇"},
{"class":"软件工程","num":"201908130416","name":"杨凯"},
{"class":"软件工程","num":"201908130417","name":"刘东兴"},
{"class":"软件工程","num":"201908130418","name":"涂逸龙"},
{"class":"软件工程","num":"201908130419","name":"覃阳"},
{"class":"软件工程","num":"201908130420","name":"向乐威"},
{"class":"软件工程","num":"201908130421","name":"龙庆"},
{"class":"软件工程","num":"201908130422","name":"康坤棋"},
{"class":"软件工程","num":"201908130423","name":"陈奇"},
{"class":"软件工程","num":"201908130424","name":"周湖翔"},
{"class":"软件工程","num":"201908130426","name":"麦家杰"},
{"class":"软件工程","num":"201908130427","name":"李春杰"},
{"class":"软件工程","num":"201908130428","name":"郝松洋"},
{"class":"软件工程","num":"201909010209","name":"金宇文"},
{"class":"软件工程","num":"201909450109","name":"刘澧沁"},
{"class":"软件工程","num":"201909450223","name":"何浩天"},
{"class":"软件工程","num":"201909450309","name":"吴双叶"},
{"class":"软件工程","num":"201909460126","name":"蒋慧"},
{"class":"软件工程","num":"201909460214","name":"周诗琪"},
{"class":"软件工程","num":"201909460229","name":"罗润杰"},
{"class":"软件工程","num":"201909460321","name":"王子通"},
{"class":"软件工程","num":"201909460505","name":"刘佳铭"},
{"class":"软件工程","num":"201910010127","name":"张锦鹏"},
{"class":"软件工程","num":"201910040205","name":"傅如景"},

];

var $ = function(id){return document.getElementById(id);};

var readData = function(data){
  
  for (var i = data.length - 1; i >= 0; i--) { 
    if(data[i].num == $("num").value){
      $("name").value = data[i].name;
      $("class").value = data[i].class;
    } 
  }
}


var info = {"num":"","name":"","class":""};

window.onload = function(){
    var login = $("form");
    login.onsubmit = function(){
    	info.num = ($("num")).value ;
		info.name = ($("name")).value ;
		info.class = ($("class")).value ;
    	sessionStorage.setItem("keyinfo", JSON.stringify(info));     	      
    } 
}